package com.zy.project2_aop_base.cglibproxy;

/**
 * @program: mavenTest153
 * @description:
 * @author: zy
 * @create: 2025-07-16 09:04
 */
public class TestCglibProxy {
    public static void main(String[] args) {
        OrderBizImpl target=new OrderBizImpl();

        //通过 InvocationHandler类来创建代理类的对象
        MyInterceptor handler=new MyInterceptor(target);
        OrderBizImpl proxy= (OrderBizImpl) handler.getProxy();

        proxy.showOrder();

    }
}
